<?php
class Zendvn_Validate_Phone extends Zend_Validate_Abstract{
	
	const INVAL   = 'inValid';
	
	protected $password;
	/**
     * @var array
     */
    protected $_messageTemplates = array(
        self::INVAL   => "Khong phai la so phone theo yeu cau",
    );
	
	/*public function __construct($password) {
		$this->password = $password;
	}*/

	public function isValid($value) {
		$pattern = '#^[a-zA-Z-0-9\-_\.]+$#';
		if(preg_match($pattern, $value)){
			$this->_error('inValid', $value);
			return FALSE;
		}
		return TRUE;
	}
}